import { createStore, applyMiddleware } from "redux"
import reducer from '../reducers'
import createSagaMiddleware from "redux-saga"
import { helloSaga } from "../saga"
import { composeWithDevTools } from "redux-devtools-extension"
const sagaMiddleware = createSagaMiddleware()
const store = createStore(reducer, composeWithDevTools(applyMiddleware(sagaMiddleware)))
sagaMiddleware.run(helloSaga)

export default store